
class LargeData {
    var data:String="..."
}

class DataProcessor{
    lazy var myData=LargeData()
    
}


let dp=DataProcessor()

//print(dp.myData.data)



class DataStorage {
    
    var data: Int = 0 {
        willSet {
            print("About to set data to \(newValue)")
        }
        didSet {
            print("Changed from \(oldValue) to \(data)")
            
        }
    }
}

var ds=DataStorage()
ds.data=300


